package campus.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ProfitsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ProfitsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLzIdIsNull() {
            addCriterion("lz_id is null");
            return (Criteria) this;
        }

        public Criteria andLzIdIsNotNull() {
            addCriterion("lz_id is not null");
            return (Criteria) this;
        }

        public Criteria andLzIdEqualTo(Integer value) {
            addCriterion("lz_id =", value, "lzId");
            return (Criteria) this;
        }

        public Criteria andLzIdNotEqualTo(Integer value) {
            addCriterion("lz_id <>", value, "lzId");
            return (Criteria) this;
        }

        public Criteria andLzIdGreaterThan(Integer value) {
            addCriterion("lz_id >", value, "lzId");
            return (Criteria) this;
        }

        public Criteria andLzIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("lz_id >=", value, "lzId");
            return (Criteria) this;
        }

        public Criteria andLzIdLessThan(Integer value) {
            addCriterion("lz_id <", value, "lzId");
            return (Criteria) this;
        }

        public Criteria andLzIdLessThanOrEqualTo(Integer value) {
            addCriterion("lz_id <=", value, "lzId");
            return (Criteria) this;
        }

        public Criteria andLzIdIn(List<Integer> values) {
            addCriterion("lz_id in", values, "lzId");
            return (Criteria) this;
        }

        public Criteria andLzIdNotIn(List<Integer> values) {
            addCriterion("lz_id not in", values, "lzId");
            return (Criteria) this;
        }

        public Criteria andLzIdBetween(Integer value1, Integer value2) {
            addCriterion("lz_id between", value1, value2, "lzId");
            return (Criteria) this;
        }

        public Criteria andLzIdNotBetween(Integer value1, Integer value2) {
            addCriterion("lz_id not between", value1, value2, "lzId");
            return (Criteria) this;
        }

        public Criteria andLzProjectIsNull() {
            addCriterion("lz_project is null");
            return (Criteria) this;
        }

        public Criteria andLzProjectIsNotNull() {
            addCriterion("lz_project is not null");
            return (Criteria) this;
        }

        public Criteria andLzProjectEqualTo(String value) {
            addCriterion("lz_project =", value, "lzProject");
            return (Criteria) this;
        }

        public Criteria andLzProjectNotEqualTo(String value) {
            addCriterion("lz_project <>", value, "lzProject");
            return (Criteria) this;
        }

        public Criteria andLzProjectGreaterThan(String value) {
            addCriterion("lz_project >", value, "lzProject");
            return (Criteria) this;
        }

        public Criteria andLzProjectGreaterThanOrEqualTo(String value) {
            addCriterion("lz_project >=", value, "lzProject");
            return (Criteria) this;
        }

        public Criteria andLzProjectLessThan(String value) {
            addCriterion("lz_project <", value, "lzProject");
            return (Criteria) this;
        }

        public Criteria andLzProjectLessThanOrEqualTo(String value) {
            addCriterion("lz_project <=", value, "lzProject");
            return (Criteria) this;
        }

        public Criteria andLzProjectLike(String value) {
            addCriterion("lz_project like", value, "lzProject");
            return (Criteria) this;
        }

        public Criteria andLzProjectNotLike(String value) {
            addCriterion("lz_project not like", value, "lzProject");
            return (Criteria) this;
        }

        public Criteria andLzProjectIn(List<String> values) {
            addCriterion("lz_project in", values, "lzProject");
            return (Criteria) this;
        }

        public Criteria andLzProjectNotIn(List<String> values) {
            addCriterion("lz_project not in", values, "lzProject");
            return (Criteria) this;
        }

        public Criteria andLzProjectBetween(String value1, String value2) {
            addCriterion("lz_project between", value1, value2, "lzProject");
            return (Criteria) this;
        }

        public Criteria andLzProjectNotBetween(String value1, String value2) {
            addCriterion("lz_project not between", value1, value2, "lzProject");
            return (Criteria) this;
        }

        public Criteria andLzLineIsNull() {
            addCriterion("lz_line is null");
            return (Criteria) this;
        }

        public Criteria andLzLineIsNotNull() {
            addCriterion("lz_line is not null");
            return (Criteria) this;
        }

        public Criteria andLzLineEqualTo(String value) {
            addCriterion("lz_line =", value, "lzLine");
            return (Criteria) this;
        }

        public Criteria andLzLineNotEqualTo(String value) {
            addCriterion("lz_line <>", value, "lzLine");
            return (Criteria) this;
        }

        public Criteria andLzLineGreaterThan(String value) {
            addCriterion("lz_line >", value, "lzLine");
            return (Criteria) this;
        }

        public Criteria andLzLineGreaterThanOrEqualTo(String value) {
            addCriterion("lz_line >=", value, "lzLine");
            return (Criteria) this;
        }

        public Criteria andLzLineLessThan(String value) {
            addCriterion("lz_line <", value, "lzLine");
            return (Criteria) this;
        }

        public Criteria andLzLineLessThanOrEqualTo(String value) {
            addCriterion("lz_line <=", value, "lzLine");
            return (Criteria) this;
        }

        public Criteria andLzLineLike(String value) {
            addCriterion("lz_line like", value, "lzLine");
            return (Criteria) this;
        }

        public Criteria andLzLineNotLike(String value) {
            addCriterion("lz_line not like", value, "lzLine");
            return (Criteria) this;
        }

        public Criteria andLzLineIn(List<String> values) {
            addCriterion("lz_line in", values, "lzLine");
            return (Criteria) this;
        }

        public Criteria andLzLineNotIn(List<String> values) {
            addCriterion("lz_line not in", values, "lzLine");
            return (Criteria) this;
        }

        public Criteria andLzLineBetween(String value1, String value2) {
            addCriterion("lz_line between", value1, value2, "lzLine");
            return (Criteria) this;
        }

        public Criteria andLzLineNotBetween(String value1, String value2) {
            addCriterion("lz_line not between", value1, value2, "lzLine");
            return (Criteria) this;
        }

        public Criteria andLzAggregateIsNull() {
            addCriterion("lz_aggregate is null");
            return (Criteria) this;
        }

        public Criteria andLzAggregateIsNotNull() {
            addCriterion("lz_aggregate is not null");
            return (Criteria) this;
        }

        public Criteria andLzAggregateEqualTo(String value) {
            addCriterion("lz_aggregate =", value, "lzAggregate");
            return (Criteria) this;
        }

        public Criteria andLzAggregateNotEqualTo(String value) {
            addCriterion("lz_aggregate <>", value, "lzAggregate");
            return (Criteria) this;
        }

        public Criteria andLzAggregateGreaterThan(String value) {
            addCriterion("lz_aggregate >", value, "lzAggregate");
            return (Criteria) this;
        }

        public Criteria andLzAggregateGreaterThanOrEqualTo(String value) {
            addCriterion("lz_aggregate >=", value, "lzAggregate");
            return (Criteria) this;
        }

        public Criteria andLzAggregateLessThan(String value) {
            addCriterion("lz_aggregate <", value, "lzAggregate");
            return (Criteria) this;
        }

        public Criteria andLzAggregateLessThanOrEqualTo(String value) {
            addCriterion("lz_aggregate <=", value, "lzAggregate");
            return (Criteria) this;
        }

        public Criteria andLzAggregateLike(String value) {
            addCriterion("lz_aggregate like", value, "lzAggregate");
            return (Criteria) this;
        }

        public Criteria andLzAggregateNotLike(String value) {
            addCriterion("lz_aggregate not like", value, "lzAggregate");
            return (Criteria) this;
        }

        public Criteria andLzAggregateIn(List<String> values) {
            addCriterion("lz_aggregate in", values, "lzAggregate");
            return (Criteria) this;
        }

        public Criteria andLzAggregateNotIn(List<String> values) {
            addCriterion("lz_aggregate not in", values, "lzAggregate");
            return (Criteria) this;
        }

        public Criteria andLzAggregateBetween(String value1, String value2) {
            addCriterion("lz_aggregate between", value1, value2, "lzAggregate");
            return (Criteria) this;
        }

        public Criteria andLzAggregateNotBetween(String value1, String value2) {
            addCriterion("lz_aggregate not between", value1, value2, "lzAggregate");
            return (Criteria) this;
        }

        public Criteria andLzAmountIsNull() {
            addCriterion("lz_amount is null");
            return (Criteria) this;
        }

        public Criteria andLzAmountIsNotNull() {
            addCriterion("lz_amount is not null");
            return (Criteria) this;
        }

        public Criteria andLzAmountEqualTo(String value) {
            addCriterion("lz_amount =", value, "lzAmount");
            return (Criteria) this;
        }

        public Criteria andLzAmountNotEqualTo(String value) {
            addCriterion("lz_amount <>", value, "lzAmount");
            return (Criteria) this;
        }

        public Criteria andLzAmountGreaterThan(String value) {
            addCriterion("lz_amount >", value, "lzAmount");
            return (Criteria) this;
        }

        public Criteria andLzAmountGreaterThanOrEqualTo(String value) {
            addCriterion("lz_amount >=", value, "lzAmount");
            return (Criteria) this;
        }

        public Criteria andLzAmountLessThan(String value) {
            addCriterion("lz_amount <", value, "lzAmount");
            return (Criteria) this;
        }

        public Criteria andLzAmountLessThanOrEqualTo(String value) {
            addCriterion("lz_amount <=", value, "lzAmount");
            return (Criteria) this;
        }

        public Criteria andLzAmountLike(String value) {
            addCriterion("lz_amount like", value, "lzAmount");
            return (Criteria) this;
        }

        public Criteria andLzAmountNotLike(String value) {
            addCriterion("lz_amount not like", value, "lzAmount");
            return (Criteria) this;
        }

        public Criteria andLzAmountIn(List<String> values) {
            addCriterion("lz_amount in", values, "lzAmount");
            return (Criteria) this;
        }

        public Criteria andLzAmountNotIn(List<String> values) {
            addCriterion("lz_amount not in", values, "lzAmount");
            return (Criteria) this;
        }

        public Criteria andLzAmountBetween(String value1, String value2) {
            addCriterion("lz_amount between", value1, value2, "lzAmount");
            return (Criteria) this;
        }

        public Criteria andLzAmountNotBetween(String value1, String value2) {
            addCriterion("lz_amount not between", value1, value2, "lzAmount");
            return (Criteria) this;
        }

        public Criteria andLzCdateIsNull() {
            addCriterion("lz_cdate is null");
            return (Criteria) this;
        }

        public Criteria andLzCdateIsNotNull() {
            addCriterion("lz_cdate is not null");
            return (Criteria) this;
        }

        public Criteria andLzCdateEqualTo(Date value) {
            addCriterion("lz_cdate =", value, "lzCdate");
            return (Criteria) this;
        }

        public Criteria andLzCdateNotEqualTo(Date value) {
            addCriterion("lz_cdate <>", value, "lzCdate");
            return (Criteria) this;
        }

        public Criteria andLzCdateGreaterThan(Date value) {
            addCriterion("lz_cdate >", value, "lzCdate");
            return (Criteria) this;
        }

        public Criteria andLzCdateGreaterThanOrEqualTo(Date value) {
            addCriterion("lz_cdate >=", value, "lzCdate");
            return (Criteria) this;
        }

        public Criteria andLzCdateLessThan(Date value) {
            addCriterion("lz_cdate <", value, "lzCdate");
            return (Criteria) this;
        }

        public Criteria andLzCdateLessThanOrEqualTo(Date value) {
            addCriterion("lz_cdate <=", value, "lzCdate");
            return (Criteria) this;
        }

        public Criteria andLzCdateIn(List<Date> values) {
            addCriterion("lz_cdate in", values, "lzCdate");
            return (Criteria) this;
        }

        public Criteria andLzCdateNotIn(List<Date> values) {
            addCriterion("lz_cdate not in", values, "lzCdate");
            return (Criteria) this;
        }

        public Criteria andLzCdateBetween(Date value1, Date value2) {
            addCriterion("lz_cdate between", value1, value2, "lzCdate");
            return (Criteria) this;
        }

        public Criteria andLzCdateNotBetween(Date value1, Date value2) {
            addCriterion("lz_cdate not between", value1, value2, "lzCdate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}